﻿using DJ.ZEF.ThirdParty;
using NSJL.Biz.Background.Client;
using NSJL.DAL.DataModel.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace DJ.Clients
{
    /// <summary>
    /// SuccessTipView.xaml 的交互逻辑
    /// </summary>
    public partial class SuccessTipView : Window
    {
        DispatcherTimer timer = new DispatcherTimer();
        public int boxNum { get; set; }
        public string type { get; set; }
        public SuccessTipView(int BoxNum)
        {
            InitializeComponent();
            boxNum = BoxNum;
            ComWindow.Start(this,Label1);
        }

        CommBiz biz = new CommBiz();
        private void Window_Closed(object sender, EventArgs e)
        {
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            lb1.Content = $"{boxNum}号柜门已打开，操作完成后请随手关门!";
            VoiceHelper.GetInstance().Start(lb1.Content.ToString());
        }

        private void btn_return(object sender, RoutedEventArgs e)
        {
            Close();
        }
    }
}
